pp108 : setImage() Method (Tabs)

setImage() Method (Tabs)


This method sets the image for the tab.

Syntax

tabID.setImage(sImageURL)

Parameters

Parameter

Description

sImageURL

Required. String that specifies the image URL for the tab.

Return Value

No return value.

Remarks

This method should be accessed through the tab that is created.

Example

The following example shows how the setImage() method is used to set the image for a tab that is created.

//testTab is the ID of the tab component
var tab = testTab.getTab("myTab");
//Set image
tab.setImage("/cordys/wcp/theme/default/icon/action/export.png");

See Also


tabs